<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./JS/vue.js"></script>
</head>
<body>
    <div class="box">
        <ul>
            <li v-for="(item,index) in list" :key="item.id">{{index}}---{{item.id}}---{{item.name}}</li>
            <li v-for="(item,index) of list">{{index}}---{{item.id}}---{{item.name}}</li>
        </ul>
    </div>

    <script>
        let vm = new Vue({
            el:'.box',
            data:{
                list: [{ id: '01', name: '刘超' }, { id: '02', name: '孙鑫' }, { id: '03', name: '洋洋' },{id:'04',name:'志龙'}]
            }
        })
    </script>
</body>
</html>